package jsyf.oa.entity.crm;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by WHH-PC on 2017/12/26.
 */
@Entity
@Table(name = "T_CRM_EXHIBITION_AIMS", schema = "oa", catalog = "")
public class ExhibitionAimsEntity extends BaseEntity {

    private String id;

    private String exhibitionId;

    private String regionId;

    private String regionName;

    private String parentId;

    private Integer customNum;

    private Integer depositNum;


    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getExhibitionId() {
        return exhibitionId;
    }

    public void setExhibitionId(String exhibitionId) {
        this.exhibitionId = exhibitionId;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public Integer getCustomNum() {
        return customNum;
    }

    public void setCustomNum(Integer customNum) {
        this.customNum = customNum;
    }

    public Integer getDepositNum() {
        return depositNum;
    }

    public void setDepositNum(Integer depositNum) {
        this.depositNum = depositNum;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }


    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("EXHIBITION_ID", getExhibitionId());
        obj.put("REGION_ID", getRegionId());
        obj.put("REGION_NAME", getRegionName());
        obj.put("PARENT_ID", getParentId());
        obj.put("CUSTOM_NUM", getCustomNum());
        obj.put("DEPOSIT_NUM", getDepositNum());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_CRM_EXHIBITION_AIMS";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("EXHIBITION_ID", "exhibitionId");
        obj.put("REGION_ID", "regionId");
        obj.put("REGION_NAME", "regionName");
        obj.put("PARENT_ID", "parentId");
        obj.put("CUSTOM_NUM", "customNum");
        obj.put("DEPOSIT_NUM", "depositNum");
        return obj;
    }
}
